package cn.edu.sptc.luojie.hellespring.bean;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Getter
@Setter
@ToString
@Slf4j
@Component
public class AutoWiredBean {
    private int id;
    private String name;

    public AutoWiredBean(){
        this.id=1001;
        this.name="张三";
        log.info("无参构造函数");
    }
    public AutoWiredBean(int id,String name){
        this.id=id;
        this.name=name;
        log.info("全参构造函数");
    }
}
